package be.bejug.scrumadmin.components.panels;

import be.bejug.scrumadmin.spring.ApplicationHolder;

import com.vaadin.ui.VerticalLayout;

@SuppressWarnings("serial")
public abstract class AbstractTab extends VerticalLayout {

	public AbstractTab() {
		setCaption(ApplicationHolder.getMessage(getCaptionKey()));
		setSizeFull();
		setSpacing(true);
		setMargin(true);
	}

	protected abstract void loadData();

	protected abstract String getCaptionKey();
}
